package oop.Demo01;
//引用传递
public class Demo05 {
    public static void main(String[] args) {
        Person person = new Person();
        System.out.println(person.name);


        Demo05.change(person);
        System.out.println(person.name);


        Person person1 = new Person();
        System.out.println(person1.name);
        Demo05.change(person1);
        System.out.println(person1.name);
    }
    public static void change(Person x){
        x.name="秦疆";
    }
}
class Person{
    String name = "kml";
}
